/**
 * Copyright (C) 2010 Cloudfarming <info@cloudfarming.nl>
 *
 * Licensed under the Eclipse Public License - v 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.eclipse.org/legal/epl-v10.html
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.cloudfarming.client.model;

import org.openide.util.NbBundle;

/**
 *
 * @author Gerben Feenstra
 */
public enum CropProtectionType{
        HERBICIDE(1, "cropprotection.herbicide"),
        FUNGICIDE(2, "cropprotection.fungicide"),
        INSECTICIDE(3, "cropprotection.insecticide"),
        ACARICIDE(4, "cropprotection.acaricide"),
        ALGACIDE(5, "cropprotection.algacide"),
        ELICITOR(6, "cropprotection.elicitor"),
        DESINFECTANT(7, "cropprotection.desinfectant"),
        
        /**
         * Groeiregulator
         */
        GROW_REGULATOR(8, "cropprotection.growregulator"),
        
        /**
         * Kiemremmingsmiddel
         */
        GERM_INHIBITION(9, "cropprotection.inhibition"),
        
        VIRUS_PROTECTION(10, "cropprotection.virus_protection"),
                
        /**
         * Slakkenbestrijdingsmiddel
         */
        SNAIL_PROTECTION(11, "cropprotection.snail_protection"),
        
        /**
         * Mollenbestrijdingsmiddel
         */
        MOLE_PROTECTION(12, "cropprotection.mole_protection"),
        
        /**
         * Vogelafweermiddel
         */
        BIRD_PROTECTION(13, "cropprotection.bird_protection"),
        
        /**
         * Doodspuitmiddel
         */
        POISION(14, "cropprotection.poision");

    private final String name;
    private final Long id;
    
    private CropProtectionType(long id, String name){
        this.id = id;
        this.name = name;
    }
    
    public String getName() {
        return NbBundle.getMessage(this.getClass(), this.name);
    }

    public Long getId() {
        return id;
    }
}
